# -*- coding: utf-8 -*-

import os

BASE_PATH = os.path.dirname(os.path.abspath(__file__))

class BaseConfig(object):
    SECRET_KEY = '6943652fc24133ba6418414ea459736c866a5aebd8b85bd4'


class DevelopmentConfig(BaseConfig):
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://wxgame:zaq1@WSX@127.0.0.1/wxgame?charset=utf8mb4'
    # SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://wxgame:zaq1@WSX@127.0.0.1:36366/wxgame?charset=utf8mb4'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_ECHO = False

    INSTALLED_BLUEPRINTS = [
        'manager:manager',
        'auth:auth'
    ]

    PAGE_LENGTH = 30
    DATA_PATH = 'data'


config = {
    'dev': DevelopmentConfig,
}
